var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  // 单个路由的权限判断
  if(req.session.power > 0){
    res.render('order', {
      index: 4,
      power: req.session.power
    });
  }else{
    res.render("noPower")
  }

});

module.exports = router;
